0 Prolog
↳1 PrologToPiTRSProof (⇒, 49 ms)
↳2 PiTRS
↳3 DependencyPairsProof (⇔, 52 ms)
↳4 PiDP
↳5 DependencyGraphProof (⇔, 10 ms)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔, 0 ms)
↳9 PiDP
↳10 PiDPToQDPProof (⇒, 0 ms)
↳11 QDP
↳12 QDPSizeChangeProof (⇔, 0 ms)
↳13 YES
↳14 PiDP
↳15 UsableRulesProof (⇔, 0 ms)
↳16 PiDP
↳17 PiDPToQDPProof (⇒, 0 ms)
↳18 QDP
↳19 QDPSizeChangeProof (⇔, 0 ms)
↳20 YES
↳21 PiDP
↳22 UsableRulesProof (⇔, 0 ms)
↳23 PiDP
↳24 PiDPToQDPProof (⇔, 0 ms)
↳25 QDP
↳26 QDPSizeChangeProof (⇔, 0 ms)
↳27 YES
↳28 PiDP
↳29 UsableRulesProof (⇔, 0 ms)
↳30 PiDP
↳31 PiDPToQDPProof (⇒, 0 ms)
↳32 QDP
↳33 QDPOrderProof (⇔, 90 ms)
↳34 QDP
↳35 DependencyGraphProof (⇔, 0 ms)
↳36 TRUE
reach_in_gggg(X, Y, Edges, Not_Visited) → U1_gggg(X, Y, Edges, Not_Visited, member_in_gg(.(X, .(Y, [])), Edges))
member_in_gg(H, .(H, L)) → member_out_gg(H, .(H, L))
member_in_gg(X, .(H, L)) → U6_gg(X, H, L, member_in_gg(X, L))
U6_gg(X, H, L, member_out_gg(X, L)) → member_out_gg(X, .(H, L))
U1_gggg(X, Y, Edges, Not_Visited, member_out_gg(.(X, .(Y, [])), Edges)) → reach_out_gggg(X, Y, Edges, Not_Visited)
reach_in_gggg(X, Z, Edges, Not_Visited) → U2_gggg(X, Z, Edges, Not_Visited, member_in_ag(.(X, .(Y, [])), Edges))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U6_ag(X, H, L, member_in_ag(X, L))
U6_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_gggg(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → U3_gggg(X, Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U3_gggg(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → U4_gggg(X, Z, Edges, Not_Visited, Y, delete_in_gga(Y, Not_Visited, V1))
delete_in_gga(X, .(X, Y), Y) → delete_out_gga(X, .(X, Y), Y)
delete_in_gga(X, .(H, T1), .(H, T2)) → U7_gga(X, H, T1, T2, delete_in_gga(X, T1, T2))
U7_gga(X, H, T1, T2, delete_out_gga(X, T1, T2)) → delete_out_gga(X, .(H, T1), .(H, T2))
U4_gggg(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → U5_gggg(X, Z, Edges, Not_Visited, reach_in_gggg(Y, Z, Edges, V1))
U5_gggg(X, Z, Edges, Not_Visited, reach_out_gggg(Y, Z, Edges, V1)) → reach_out_gggg(X, Z, Edges, Not_Visited)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
reach_in_gggg(X, Y, Edges, Not_Visited) → U1_gggg(X, Y, Edges, Not_Visited, member_in_gg(.(X, .(Y, [])), Edges))
member_in_gg(H, .(H, L)) → member_out_gg(H, .(H, L))
member_in_gg(X, .(H, L)) → U6_gg(X, H, L, member_in_gg(X, L))
U6_gg(X, H, L, member_out_gg(X, L)) → member_out_gg(X, .(H, L))
U1_gggg(X, Y, Edges, Not_Visited, member_out_gg(.(X, .(Y, [])), Edges)) → reach_out_gggg(X, Y, Edges, Not_Visited)
reach_in_gggg(X, Z, Edges, Not_Visited) → U2_gggg(X, Z, Edges, Not_Visited, member_in_ag(.(X, .(Y, [])), Edges))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U6_ag(X, H, L, member_in_ag(X, L))
U6_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_gggg(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → U3_gggg(X, Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U3_gggg(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → U4_gggg(X, Z, Edges, Not_Visited, Y, delete_in_gga(Y, Not_Visited, V1))
delete_in_gga(X, .(X, Y), Y) → delete_out_gga(X, .(X, Y), Y)
delete_in_gga(X, .(H, T1), .(H, T2)) → U7_gga(X, H, T1, T2, delete_in_gga(X, T1, T2))
U7_gga(X, H, T1, T2, delete_out_gga(X, T1, T2)) → delete_out_gga(X, .(H, T1), .(H, T2))
U4_gggg(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → U5_gggg(X, Z, Edges, Not_Visited, reach_in_gggg(Y, Z, Edges, V1))
U5_gggg(X, Z, Edges, Not_Visited, reach_out_gggg(Y, Z, Edges, V1)) → reach_out_gggg(X, Z, Edges, Not_Visited)
REACH_IN_GGGG(X, Y, Edges, Not_Visited) → U1_GGGG(X, Y, Edges, Not_Visited, member_in_gg(.(X, .(Y, [])), Edges))
REACH_IN_GGGG(X, Y, Edges, Not_Visited) → MEMBER_IN_GG(.(X, .(Y, [])), Edges)
MEMBER_IN_GG(X, .(H, L)) → U6_GG(X, H, L, member_in_gg(X, L))
MEMBER_IN_GG(X, .(H, L)) → MEMBER_IN_GG(X, L)
REACH_IN_GGGG(X, Z, Edges, Not_Visited) → U2_GGGG(X, Z, Edges, Not_Visited, member_in_ag(.(X, .(Y, [])), Edges))
REACH_IN_GGGG(X, Z, Edges, Not_Visited) → MEMBER_IN_AG(.(X, .(Y, [])), Edges)
MEMBER_IN_AG(X, .(H, L)) → U6_AG(X, H, L, member_in_ag(X, L))
MEMBER_IN_AG(X, .(H, L)) → MEMBER_IN_AG(X, L)
U2_GGGG(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → U3_GGGG(X, Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U2_GGGG(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → MEMBER_IN_GG(Y, Not_Visited)
U3_GGGG(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → U4_GGGG(X, Z, Edges, Not_Visited, Y, delete_in_gga(Y, Not_Visited, V1))
U3_GGGG(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → DELETE_IN_GGA(Y, Not_Visited, V1)
DELETE_IN_GGA(X, .(H, T1), .(H, T2)) → U7_GGA(X, H, T1, T2, delete_in_gga(X, T1, T2))
DELETE_IN_GGA(X, .(H, T1), .(H, T2)) → DELETE_IN_GGA(X, T1, T2)
U4_GGGG(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → U5_GGGG(X, Z, Edges, Not_Visited, reach_in_gggg(Y, Z, Edges, V1))
U4_GGGG(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → REACH_IN_GGGG(Y, Z, Edges, V1)
reach_in_gggg(X, Y, Edges, Not_Visited) → U1_gggg(X, Y, Edges, Not_Visited, member_in_gg(.(X, .(Y, [])), Edges))
member_in_gg(H, .(H, L)) → member_out_gg(H, .(H, L))
member_in_gg(X, .(H, L)) → U6_gg(X, H, L, member_in_gg(X, L))
U6_gg(X, H, L, member_out_gg(X, L)) → member_out_gg(X, .(H, L))
U1_gggg(X, Y, Edges, Not_Visited, member_out_gg(.(X, .(Y, [])), Edges)) → reach_out_gggg(X, Y, Edges, Not_Visited)
reach_in_gggg(X, Z, Edges, Not_Visited) → U2_gggg(X, Z, Edges, Not_Visited, member_in_ag(.(X, .(Y, [])), Edges))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U6_ag(X, H, L, member_in_ag(X, L))
U6_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_gggg(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → U3_gggg(X, Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U3_gggg(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → U4_gggg(X, Z, Edges, Not_Visited, Y, delete_in_gga(Y, Not_Visited, V1))
delete_in_gga(X, .(X, Y), Y) → delete_out_gga(X, .(X, Y), Y)
delete_in_gga(X, .(H, T1), .(H, T2)) → U7_gga(X, H, T1, T2, delete_in_gga(X, T1, T2))
U7_gga(X, H, T1, T2, delete_out_gga(X, T1, T2)) → delete_out_gga(X, .(H, T1), .(H, T2))
U4_gggg(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → U5_gggg(X, Z, Edges, Not_Visited, reach_in_gggg(Y, Z, Edges, V1))
U5_gggg(X, Z, Edges, Not_Visited, reach_out_gggg(Y, Z, Edges, V1)) → reach_out_gggg(X, Z, Edges, Not_Visited)
REACH_IN_GGGG(X, Y, Edges, Not_Visited) → U1_GGGG(X, Y, Edges, Not_Visited, member_in_gg(.(X, .(Y, [])), Edges))
REACH_IN_GGGG(X, Y, Edges, Not_Visited) → MEMBER_IN_GG(.(X, .(Y, [])), Edges)
MEMBER_IN_GG(X, .(H, L)) → U6_GG(X, H, L, member_in_gg(X, L))
MEMBER_IN_GG(X, .(H, L)) → MEMBER_IN_GG(X, L)
REACH_IN_GGGG(X, Z, Edges, Not_Visited) → U2_GGGG(X, Z, Edges, Not_Visited, member_in_ag(.(X, .(Y, [])), Edges))
REACH_IN_GGGG(X, Z, Edges, Not_Visited) → MEMBER_IN_AG(.(X, .(Y, [])), Edges)
MEMBER_IN_AG(X, .(H, L)) → U6_AG(X, H, L, member_in_ag(X, L))
MEMBER_IN_AG(X, .(H, L)) → MEMBER_IN_AG(X, L)
U2_GGGG(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → U3_GGGG(X, Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U2_GGGG(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → MEMBER_IN_GG(Y, Not_Visited)
U3_GGGG(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → U4_GGGG(X, Z, Edges, Not_Visited, Y, delete_in_gga(Y, Not_Visited, V1))
U3_GGGG(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → DELETE_IN_GGA(Y, Not_Visited, V1)
DELETE_IN_GGA(X, .(H, T1), .(H, T2)) → U7_GGA(X, H, T1, T2, delete_in_gga(X, T1, T2))
DELETE_IN_GGA(X, .(H, T1), .(H, T2)) → DELETE_IN_GGA(X, T1, T2)
U4_GGGG(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → U5_GGGG(X, Z, Edges, Not_Visited, reach_in_gggg(Y, Z, Edges, V1))
U4_GGGG(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → REACH_IN_GGGG(Y, Z, Edges, V1)
reach_in_gggg(X, Y, Edges, Not_Visited) → U1_gggg(X, Y, Edges, Not_Visited, member_in_gg(.(X, .(Y, [])), Edges))
member_in_gg(H, .(H, L)) → member_out_gg(H, .(H, L))
member_in_gg(X, .(H, L)) → U6_gg(X, H, L, member_in_gg(X, L))
U6_gg(X, H, L, member_out_gg(X, L)) → member_out_gg(X, .(H, L))
U1_gggg(X, Y, Edges, Not_Visited, member_out_gg(.(X, .(Y, [])), Edges)) → reach_out_gggg(X, Y, Edges, Not_Visited)
reach_in_gggg(X, Z, Edges, Not_Visited) → U2_gggg(X, Z, Edges, Not_Visited, member_in_ag(.(X, .(Y, [])), Edges))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U6_ag(X, H, L, member_in_ag(X, L))
U6_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_gggg(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → U3_gggg(X, Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U3_gggg(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → U4_gggg(X, Z, Edges, Not_Visited, Y, delete_in_gga(Y, Not_Visited, V1))
delete_in_gga(X, .(X, Y), Y) → delete_out_gga(X, .(X, Y), Y)
delete_in_gga(X, .(H, T1), .(H, T2)) → U7_gga(X, H, T1, T2, delete_in_gga(X, T1, T2))
U7_gga(X, H, T1, T2, delete_out_gga(X, T1, T2)) → delete_out_gga(X, .(H, T1), .(H, T2))
U4_gggg(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → U5_gggg(X, Z, Edges, Not_Visited, reach_in_gggg(Y, Z, Edges, V1))
U5_gggg(X, Z, Edges, Not_Visited, reach_out_gggg(Y, Z, Edges, V1)) → reach_out_gggg(X, Z, Edges, Not_Visited)
DELETE_IN_GGA(X, .(H, T1), .(H, T2)) → DELETE_IN_GGA(X, T1, T2)
reach_in_gggg(X, Y, Edges, Not_Visited) → U1_gggg(X, Y, Edges, Not_Visited, member_in_gg(.(X, .(Y, [])), Edges))
member_in_gg(H, .(H, L)) → member_out_gg(H, .(H, L))
member_in_gg(X, .(H, L)) → U6_gg(X, H, L, member_in_gg(X, L))
U6_gg(X, H, L, member_out_gg(X, L)) → member_out_gg(X, .(H, L))
U1_gggg(X, Y, Edges, Not_Visited, member_out_gg(.(X, .(Y, [])), Edges)) → reach_out_gggg(X, Y, Edges, Not_Visited)
reach_in_gggg(X, Z, Edges, Not_Visited) → U2_gggg(X, Z, Edges, Not_Visited, member_in_ag(.(X, .(Y, [])), Edges))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U6_ag(X, H, L, member_in_ag(X, L))
U6_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_gggg(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → U3_gggg(X, Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U3_gggg(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → U4_gggg(X, Z, Edges, Not_Visited, Y, delete_in_gga(Y, Not_Visited, V1))
delete_in_gga(X, .(X, Y), Y) → delete_out_gga(X, .(X, Y), Y)
delete_in_gga(X, .(H, T1), .(H, T2)) → U7_gga(X, H, T1, T2, delete_in_gga(X, T1, T2))
U7_gga(X, H, T1, T2, delete_out_gga(X, T1, T2)) → delete_out_gga(X, .(H, T1), .(H, T2))
U4_gggg(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → U5_gggg(X, Z, Edges, Not_Visited, reach_in_gggg(Y, Z, Edges, V1))
U5_gggg(X, Z, Edges, Not_Visited, reach_out_gggg(Y, Z, Edges, V1)) → reach_out_gggg(X, Z, Edges, Not_Visited)
DELETE_IN_GGA(X, .(H, T1), .(H, T2)) → DELETE_IN_GGA(X, T1, T2)
DELETE_IN_GGA(X, .(H, T1)) → DELETE_IN_GGA(X, T1)
From the DPs we obtained the following set of size-change graphs:
MEMBER_IN_AG(X, .(H, L)) → MEMBER_IN_AG(X, L)
reach_in_gggg(X, Y, Edges, Not_Visited) → U1_gggg(X, Y, Edges, Not_Visited, member_in_gg(.(X, .(Y, [])), Edges))
member_in_gg(H, .(H, L)) → member_out_gg(H, .(H, L))
member_in_gg(X, .(H, L)) → U6_gg(X, H, L, member_in_gg(X, L))
U6_gg(X, H, L, member_out_gg(X, L)) → member_out_gg(X, .(H, L))
U1_gggg(X, Y, Edges, Not_Visited, member_out_gg(.(X, .(Y, [])), Edges)) → reach_out_gggg(X, Y, Edges, Not_Visited)
reach_in_gggg(X, Z, Edges, Not_Visited) → U2_gggg(X, Z, Edges, Not_Visited, member_in_ag(.(X, .(Y, [])), Edges))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U6_ag(X, H, L, member_in_ag(X, L))
U6_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_gggg(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → U3_gggg(X, Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U3_gggg(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → U4_gggg(X, Z, Edges, Not_Visited, Y, delete_in_gga(Y, Not_Visited, V1))
delete_in_gga(X, .(X, Y), Y) → delete_out_gga(X, .(X, Y), Y)
delete_in_gga(X, .(H, T1), .(H, T2)) → U7_gga(X, H, T1, T2, delete_in_gga(X, T1, T2))
U7_gga(X, H, T1, T2, delete_out_gga(X, T1, T2)) → delete_out_gga(X, .(H, T1), .(H, T2))
U4_gggg(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → U5_gggg(X, Z, Edges, Not_Visited, reach_in_gggg(Y, Z, Edges, V1))
U5_gggg(X, Z, Edges, Not_Visited, reach_out_gggg(Y, Z, Edges, V1)) → reach_out_gggg(X, Z, Edges, Not_Visited)
MEMBER_IN_AG(X, .(H, L)) → MEMBER_IN_AG(X, L)
MEMBER_IN_AG(.(H, L)) → MEMBER_IN_AG(L)
From the DPs we obtained the following set of size-change graphs:
MEMBER_IN_GG(X, .(H, L)) → MEMBER_IN_GG(X, L)
reach_in_gggg(X, Y, Edges, Not_Visited) → U1_gggg(X, Y, Edges, Not_Visited, member_in_gg(.(X, .(Y, [])), Edges))
member_in_gg(H, .(H, L)) → member_out_gg(H, .(H, L))
member_in_gg(X, .(H, L)) → U6_gg(X, H, L, member_in_gg(X, L))
U6_gg(X, H, L, member_out_gg(X, L)) → member_out_gg(X, .(H, L))
U1_gggg(X, Y, Edges, Not_Visited, member_out_gg(.(X, .(Y, [])), Edges)) → reach_out_gggg(X, Y, Edges, Not_Visited)
reach_in_gggg(X, Z, Edges, Not_Visited) → U2_gggg(X, Z, Edges, Not_Visited, member_in_ag(.(X, .(Y, [])), Edges))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U6_ag(X, H, L, member_in_ag(X, L))
U6_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_gggg(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → U3_gggg(X, Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U3_gggg(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → U4_gggg(X, Z, Edges, Not_Visited, Y, delete_in_gga(Y, Not_Visited, V1))
delete_in_gga(X, .(X, Y), Y) → delete_out_gga(X, .(X, Y), Y)
delete_in_gga(X, .(H, T1), .(H, T2)) → U7_gga(X, H, T1, T2, delete_in_gga(X, T1, T2))
U7_gga(X, H, T1, T2, delete_out_gga(X, T1, T2)) → delete_out_gga(X, .(H, T1), .(H, T2))
U4_gggg(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → U5_gggg(X, Z, Edges, Not_Visited, reach_in_gggg(Y, Z, Edges, V1))
U5_gggg(X, Z, Edges, Not_Visited, reach_out_gggg(Y, Z, Edges, V1)) → reach_out_gggg(X, Z, Edges, Not_Visited)
MEMBER_IN_GG(X, .(H, L)) → MEMBER_IN_GG(X, L)
MEMBER_IN_GG(X, .(H, L)) → MEMBER_IN_GG(X, L)
From the DPs we obtained the following set of size-change graphs:
REACH_IN_GGGG(X, Z, Edges, Not_Visited) → U2_GGGG(X, Z, Edges, Not_Visited, member_in_ag(.(X, .(Y, [])), Edges))
U2_GGGG(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → U3_GGGG(X, Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U3_GGGG(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → U4_GGGG(X, Z, Edges, Not_Visited, Y, delete_in_gga(Y, Not_Visited, V1))
U4_GGGG(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → REACH_IN_GGGG(Y, Z, Edges, V1)
reach_in_gggg(X, Y, Edges, Not_Visited) → U1_gggg(X, Y, Edges, Not_Visited, member_in_gg(.(X, .(Y, [])), Edges))
member_in_gg(H, .(H, L)) → member_out_gg(H, .(H, L))
member_in_gg(X, .(H, L)) → U6_gg(X, H, L, member_in_gg(X, L))
U6_gg(X, H, L, member_out_gg(X, L)) → member_out_gg(X, .(H, L))
U1_gggg(X, Y, Edges, Not_Visited, member_out_gg(.(X, .(Y, [])), Edges)) → reach_out_gggg(X, Y, Edges, Not_Visited)
reach_in_gggg(X, Z, Edges, Not_Visited) → U2_gggg(X, Z, Edges, Not_Visited, member_in_ag(.(X, .(Y, [])), Edges))
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U6_ag(X, H, L, member_in_ag(X, L))
U6_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U2_gggg(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → U3_gggg(X, Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U3_gggg(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → U4_gggg(X, Z, Edges, Not_Visited, Y, delete_in_gga(Y, Not_Visited, V1))
delete_in_gga(X, .(X, Y), Y) → delete_out_gga(X, .(X, Y), Y)
delete_in_gga(X, .(H, T1), .(H, T2)) → U7_gga(X, H, T1, T2, delete_in_gga(X, T1, T2))
U7_gga(X, H, T1, T2, delete_out_gga(X, T1, T2)) → delete_out_gga(X, .(H, T1), .(H, T2))
U4_gggg(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → U5_gggg(X, Z, Edges, Not_Visited, reach_in_gggg(Y, Z, Edges, V1))
U5_gggg(X, Z, Edges, Not_Visited, reach_out_gggg(Y, Z, Edges, V1)) → reach_out_gggg(X, Z, Edges, Not_Visited)
REACH_IN_GGGG(X, Z, Edges, Not_Visited) → U2_GGGG(X, Z, Edges, Not_Visited, member_in_ag(.(X, .(Y, [])), Edges))
U2_GGGG(X, Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])), Edges)) → U3_GGGG(X, Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U3_GGGG(X, Z, Edges, Not_Visited, Y, member_out_gg(Y, Not_Visited)) → U4_GGGG(X, Z, Edges, Not_Visited, Y, delete_in_gga(Y, Not_Visited, V1))
U4_GGGG(X, Z, Edges, Not_Visited, Y, delete_out_gga(Y, Not_Visited, V1)) → REACH_IN_GGGG(Y, Z, Edges, V1)
member_in_ag(H, .(H, L)) → member_out_ag(H, .(H, L))
member_in_ag(X, .(H, L)) → U6_ag(X, H, L, member_in_ag(X, L))
member_in_gg(H, .(H, L)) → member_out_gg(H, .(H, L))
member_in_gg(X, .(H, L)) → U6_gg(X, H, L, member_in_gg(X, L))
delete_in_gga(X, .(X, Y), Y) → delete_out_gga(X, .(X, Y), Y)
delete_in_gga(X, .(H, T1), .(H, T2)) → U7_gga(X, H, T1, T2, delete_in_gga(X, T1, T2))
U6_ag(X, H, L, member_out_ag(X, L)) → member_out_ag(X, .(H, L))
U6_gg(X, H, L, member_out_gg(X, L)) → member_out_gg(X, .(H, L))
U7_gga(X, H, T1, T2, delete_out_gga(X, T1, T2)) → delete_out_gga(X, .(H, T1), .(H, T2))
REACH_IN_GGGG(X, Z, Edges, Not_Visited) → U2_GGGG(Z, Edges, Not_Visited, member_in_ag(Edges))
U2_GGGG(Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])))) → U3_GGGG(Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U3_GGGG(Z, Edges, Not_Visited, Y, member_out_gg) → U4_GGGG(Z, Edges, Y, delete_in_gga(Y, Not_Visited))
U4_GGGG(Z, Edges, Y, delete_out_gga(V1)) → REACH_IN_GGGG(Y, Z, Edges, V1)
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U6_ag(member_in_ag(L))
member_in_gg(H, .(H, L)) → member_out_gg
member_in_gg(X, .(H, L)) → U6_gg(member_in_gg(X, L))
delete_in_gga(X, .(X, Y)) → delete_out_gga(Y)
delete_in_gga(X, .(H, T1)) → U7_gga(H, delete_in_gga(X, T1))
U6_ag(member_out_ag(X)) → member_out_ag(X)
U6_gg(member_out_gg) → member_out_gg
U7_gga(H, delete_out_gga(T2)) → delete_out_gga(.(H, T2))
member_in_ag(x0)
member_in_gg(x0, x1)
delete_in_gga(x0, x1)
U6_ag(x0)
U6_gg(x0)
U7_gga(x0, x1)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
REACH_IN_GGGG(X, Z, Edges, Not_Visited) → U2_GGGG(Z, Edges, Not_Visited, member_in_ag(Edges))
POL(.(x1, x2)) = 1 + x2
POL(REACH_IN_GGGG(x1, x2, x3, x4)) = 1 + x4
POL(U2_GGGG(x1, x2, x3, x4)) = x3
POL(U3_GGGG(x1, x2, x3, x4, x5)) = x3
POL(U4_GGGG(x1, x2, x3, x4)) = x4
POL(U6_ag(x1)) = 0
POL(U6_gg(x1)) = 0
POL(U7_gga(x1, x2)) = 1 + x2
POL([]) = 0
POL(delete_in_gga(x1, x2)) = x2
POL(delete_out_gga(x1)) = 1 + x1
POL(member_in_ag(x1)) = 0
POL(member_in_gg(x1, x2)) = 0
POL(member_out_ag(x1)) = 0
POL(member_out_gg) = 0
delete_in_gga(X, .(X, Y)) → delete_out_gga(Y)
delete_in_gga(X, .(H, T1)) → U7_gga(H, delete_in_gga(X, T1))
U7_gga(H, delete_out_gga(T2)) → delete_out_gga(.(H, T2))
U2_GGGG(Z, Edges, Not_Visited, member_out_ag(.(X, .(Y, [])))) → U3_GGGG(Z, Edges, Not_Visited, Y, member_in_gg(Y, Not_Visited))
U3_GGGG(Z, Edges, Not_Visited, Y, member_out_gg) → U4_GGGG(Z, Edges, Y, delete_in_gga(Y, Not_Visited))
U4_GGGG(Z, Edges, Y, delete_out_gga(V1)) → REACH_IN_GGGG(Y, Z, Edges, V1)
member_in_ag(.(H, L)) → member_out_ag(H)
member_in_ag(.(H, L)) → U6_ag(member_in_ag(L))
member_in_gg(H, .(H, L)) → member_out_gg
member_in_gg(X, .(H, L)) → U6_gg(member_in_gg(X, L))
delete_in_gga(X, .(X, Y)) → delete_out_gga(Y)
delete_in_gga(X, .(H, T1)) → U7_gga(H, delete_in_gga(X, T1))
U6_ag(member_out_ag(X)) → member_out_ag(X)
U6_gg(member_out_gg) → member_out_gg
U7_gga(H, delete_out_gga(T2)) → delete_out_gga(.(H, T2))
member_in_ag(x0)
member_in_gg(x0, x1)
delete_in_gga(x0, x1)
U6_ag(x0)
U6_gg(x0)
U7_gga(x0, x1)